import request from '@/utils/request'

export function loadAll(data) {
	return request({
		url: '/employee',
		method: 'post',
		data
	})
}
export function update(data) {
	return request({
		url: '/employee',
		method: 'put',
		data
	})
}
export function deleted(id) {
	return request({
		url: '/employee/'+id,
		method: 'delete',
	})
}
export function add(data) {
	return request({
		url: '/employee',
		method: 'put',
		data
	})
}
export function deleteAll(data) {
	return request({
		url: '/employee/deleteAll',
		method: 'delete',
		data
	})
}
export function selAllLoginInfo() {
	return request({
		url: '/employee/selAllLoginInfo',
		method: 'get',
	})
}
export function selAllDept() {
	return request({
		url: '/employee/selAllDept',
		method: 'get',
	})
}
export function selAllShop() {
	return request({
		url: '/employee/selAllShop',
		method: 'get',
	})
}
